fc92cebf3cce5697c7d8c3ef9738ce08edd05f63,mangooio-core/src/main/java/io/mangoo/providers/CacheProvider.java,CacheProvider,initServerEventCache,#,96

Before Change


                .withExpiry(Expirations.timeToIdleExpiration(Duration.of(30, TimeUnit.MINUTES)))
                .build();
        
        org.ehcache.Cache<String, Object> sseCache = cacheManager.createCache(CacheName.SSE.toString(), configuration);
        
        this.caches.put(CacheName.SSE, new CacheImpl(sseCache));
    }

    private void initWebSocketCache() {

After Change


                .withExpiry(Expirations.timeToIdleExpiration(Duration.of(30, TimeUnit.MINUTES)))
                .build();

        registerCacheConfiguration(CacheName.SSE.toString(), configuration);
    }

    private void initWebSocketCache() {